home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / gnome-vfs-module-2.0 / libgnomevfs / gnome-vfs-cancellable-ops.h next >
Encoding:
C/C++ Source or Header  |  2006-05-01  |  5.3 KB  |  164 lines

  1. /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
  2. /* gnome-vfs-private-ops.h - Private synchronous operations for the GNOME
  3.    Virtual File System.
  4.  
  5.    Copyright (C) 1999 Free Software Foundation
  6.  
  7.    The Gnome Library is free software; you can redistribute it and/or
  8.    modify it under the terms of the GNU Library General Public License as
  9.    published by the Free Software Foundation; either version 2 of the
  10.    License, or (at your option) any later version.
  11.  
  12.    The Gnome Library is distributed in the hope that it will be useful,
  13.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15.    Library General Public License for more details.
  16.  
  17.    You should have received a copy of the GNU Library General Public
  18.    License along with the Gnome Library; see the file COPYING.LIB.  If not,
  19.    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  20.    Boston, MA 02111-1307, USA.
  21.  
  22.    Author: Ettore Perazzoli <ettore@gnu.org> */
  23.  
  24. #ifndef GNOME_VFS_CANCELLABLE_OPS_H
  25. #define GNOME_VFS_CANCELLABLE_OPS_H
  26.  
  27. #include <libgnomevfs/gnome-vfs-directory.h>
  28. #include <libgnomevfs/gnome-vfs-find-directory.h>
  29. #include <libgnomevfs/gnome-vfs-handle.h>
  30. #include <libgnomevfs/gnome-vfs-xfer.h>
  31.  
  32. G_BEGIN_DECLS
  33.  
  34. GnomeVFSResult gnome_vfs_open_uri_cancellable
  35.                     (GnomeVFSHandle **handle,
  36.                      GnomeVFSURI *uri,
  37.                      GnomeVFSOpenMode open_mode,
  38.                      GnomeVFSContext *context);
  39.  
  40. GnomeVFSResult gnome_vfs_create_uri_cancellable
  41.                     (GnomeVFSHandle **handle,
  42.                      GnomeVFSURI *uri,
  43.                      GnomeVFSOpenMode open_mode,
  44.                      gboolean exclusive,
  45.                      guint perm,
  46.                      GnomeVFSContext *context);
  47.  
  48. GnomeVFSResult gnome_vfs_close_cancellable
  49.                     (GnomeVFSHandle *handle,
  50.                      GnomeVFSContext *context);
  51.  
  52. GnomeVFSResult gnome_vfs_read_cancellable
  53.                     (GnomeVFSHandle *handle,
  54.                      gpointer buffer,
  55.                      GnomeVFSFileSize bytes,
  56.                      GnomeVFSFileSize *bytes_written,
  57.                      GnomeVFSContext *context);
  58.  
  59. GnomeVFSResult gnome_vfs_write_cancellable
  60.                     (GnomeVFSHandle *handle,
  61.                      gconstpointer buffer,
  62.                      GnomeVFSFileSize bytes,
  63.                      GnomeVFSFileSize *bytes_written,
  64.                      GnomeVFSContext *context);
  65.  
  66. GnomeVFSResult gnome_vfs_seek_cancellable
  67.                     (GnomeVFSHandle *handle,
  68.                      GnomeVFSSeekPosition whence,
  69.                      GnomeVFSFileOffset offset,
  70.                      GnomeVFSContext *context);
  71.  
  72. GnomeVFSResult gnome_vfs_get_file_info_uri_cancellable
  73.                     (GnomeVFSURI *uri,
  74.                      GnomeVFSFileInfo *info,
  75.                      GnomeVFSFileInfoOptions options,
  76.                      GnomeVFSContext *context);
  77.  
  78. GnomeVFSResult gnome_vfs_get_file_info_from_handle_cancellable
  79.                     (GnomeVFSHandle *handle,
  80.                      GnomeVFSFileInfo *info,
  81.                      GnomeVFSFileInfoOptions options,
  82.                      GnomeVFSContext *context);
  83.  
  84. GnomeVFSResult gnome_vfs_truncate_uri_cancellable (GnomeVFSURI *uri,
  85.                            GnomeVFSFileSize length,
  86.                            GnomeVFSContext *context);
  87.  
  88. GnomeVFSResult gnome_vfs_truncate_handle_cancellable (GnomeVFSHandle *handle,
  89.                               GnomeVFSFileSize length,
  90.                               GnomeVFSContext *context);
  91.  
  92. GnomeVFSResult gnome_vfs_make_directory_for_uri_cancellable
  93.                     (GnomeVFSURI *uri,
  94.                      guint perm,
  95.                      GnomeVFSContext *context);
  96.  
  97. GnomeVFSResult gnome_vfs_find_directory_cancellable (GnomeVFSURI *near_uri,
  98.                              GnomeVFSFindDirectoryKind kind,
  99.                              GnomeVFSURI **result_uri,
  100.                              gboolean create_if_needed,
  101.                                gboolean find_if_needed,
  102.                              guint permissions,
  103.                              GnomeVFSContext *context);
  104.  
  105. GnomeVFSResult gnome_vfs_remove_directory_from_uri_cancellable
  106.                     (GnomeVFSURI *uri,
  107.                      GnomeVFSContext *context);
  108.  
  109. GnomeVFSResult gnome_vfs_unlink_from_uri_cancellable
  110.                     (GnomeVFSURI *uri,
  111.                      GnomeVFSContext *context);
  112. GnomeVFSResult gnome_vfs_create_symbolic_link_cancellable
  113.                                         (GnomeVFSURI *uri,
  114.                      const gchar *target_reference,
  115.                      GnomeVFSContext *context);
  116. GnomeVFSResult gnome_vfs_move_uri_cancellable
  117.                     (GnomeVFSURI *old,
  118.                      GnomeVFSURI *new,
  119.                      gboolean force_replace,
  120.                      GnomeVFSContext *context);
  121.  
  122. GnomeVFSResult gnome_vfs_check_same_fs_uris_cancellable
  123.                      (GnomeVFSURI *a,
  124.                       GnomeVFSURI *b,
  125.                       gboolean *same_fs_return,
  126.                       GnomeVFSContext *context);
  127.  
  128. GnomeVFSResult gnome_vfs_set_file_info_cancellable
  129.                      (GnomeVFSURI *a,
  130.                       const GnomeVFSFileInfo *info,
  131.                       GnomeVFSSetFileInfoMask mask,
  132.                       GnomeVFSContext *context);
  133.  
  134. GnomeVFSResult _gnome_vfs_xfer_private   (const GList *source_uri_list,
  135.                      const GList *target_uri_list,
  136.                      GnomeVFSXferOptions xfer_options,
  137.                      GnomeVFSXferErrorMode error_mode,
  138.                      GnomeVFSXferOverwriteMode overwrite_mode,
  139.                      GnomeVFSXferProgressCallback progress_callback,
  140.                      gpointer data,
  141.                      GnomeVFSXferProgressCallback sync_progress_callback,
  142.                      gpointer sync_progress_data);
  143.  
  144. GnomeVFSResult    gnome_vfs_directory_read_next_cancellable
  145.                     (GnomeVFSDirectoryHandle *handle,
  146.                      GnomeVFSFileInfo *info,
  147.                      GnomeVFSContext *context);
  148.  
  149. GnomeVFSResult  gnome_vfs_directory_open_from_uri_cancellable
  150.                     (GnomeVFSDirectoryHandle **handle,
  151.                      GnomeVFSURI *uri,
  152.                      GnomeVFSFileInfoOptions options,
  153.                      GnomeVFSContext *context);
  154.  
  155. GnomeVFSResult  gnome_vfs_file_control_cancellable
  156.                                         (GnomeVFSHandle *handle,
  157.                      const char *operation,
  158.                      gpointer operation_data,
  159.                      GnomeVFSContext *context);
  160.  
  161. G_END_DECLS
  162.  
  163. #endif /* GNOME_VFS_CANCELLABLE_OPS_H */
  164.